package com.zhentao.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhentao.domain.excel.ReturnStatusConverter;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
public class SExaminationInformationExport {

    /**
     * 考试信息主键
     */
    @ExcelProperty(value = "考试信息主键", index = 0)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer id;

    /**
     * 考试类型
     */
    @ExcelProperty(value = "考试类型", index = 1)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String name;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间", index = 2)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Date beginTime;

    /**
     * 结束时间
     */
    @ExcelProperty(value = "结束时间", index = 3)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Date endTime;


    /**
     * 课程外键id
     */
    @ExcelProperty(value = "课程", index = 5)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String subjectName;

    /**
     * 单选题数量/单个选项分数自定义
     */
    @ExcelProperty(value = "单选题数量/单个选项分数自定义", index = 6)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String radioCount;

    /**
     * 多选题数量/单个选项分数自定义
     */
    @ExcelProperty(value = "多选题数量/单个选项分数自定义", index = 7)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String checkCount;

    /**
     * 判断题数量/单个选项分数自定义
     */
    @ExcelProperty(value = "判断题数量/单个选项分数自定义", index = 8)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String judgmentCount;

    /**
     * 简答题数量/单个选项分数自定义
     */
    @ExcelProperty(value = "简答题数量/单个选项分数自定义", index = 9)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String textCount;

    /**
     * 考试时长
     */
    @ExcelProperty(value = "考试时长", index = 10)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Date examDuration;

    /**
     * 状态（0:未开始  1:考试中  2：已结束）
     */
    @ExcelProperty(value = "状态", index = 11,converter = ReturnStatusConverter.class)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer state;

}
